home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / GParted Live CD / Bin / gparted-livecd-0.2.2.iso / bin / GPkeymap < prev    next >
Encoding:
Text File  |  2006-02-12  |  4.2 KB  |  156 lines

  1. #!/bin/sh
  2. ############################################################################
  3. #    Copyright (C) 2006 by Patrick J. Verner                               #
  4. #    exodusrobot@yahoo.com                                                 #
  5. #                                                                          #
  6. #    This program is free software; you can redistribute it and/or modify  #
  7. #    it under the terms of the GNU General Public License as published by  #
  8. #    the Free Software Foundation; either version 2 of the License, or     #
  9. #    (at your option) any later version.                                   #
  10. ############################################################################
  11.  
  12. #make sure temp exists
  13. temp=/tmp/GPkeymap
  14. temp1=/tmp/GPkeymap
  15. if [ ! -d $temp1 ]
  16.   then
  17.     mkdir -p $temp1
  18.     chmod 700 $temp1
  19. fi
  20.  
  21. #**********main menu**********
  22. item="qwerty/us.map"
  23. while [ 0 ]
  24.   do
  25. dialog --title "GParted LiveCD Keymap" --default-item "$item" --backtitle "GParted Livecd" --menu "Select your Keymap:" 22 55 11 \
  26. "qwerty/us.map" "" \
  27. "azerty/azerty.map" "" \
  28. "azerty/be-latin1.map" "" \
  29. "azerty/fr-latin1.map" "" \
  30. "azerty/fr-latin9.map" "" \
  31. "azerty/fr-pc.map" "" \
  32. "azerty/fr.map" "" \
  33. "azerty/wangbe.map" "" \
  34. "azerty/wangbe2.map" "" \
  35. "dvorak/ANSI-dvorak.map" "" \
  36. "dvorak/dvorak-l.map" "" \
  37. "dvorak/dvorak-r.map" "" \
  38. "dvorak/dvorak.map" "" \
  39. "fgGIod/tr_f-latin5.map" "" \
  40. "fgGIod/trf.map" "" \
  41. "qwerty/bg-cp1251.map" "" \
  42. "qwerty/bg-cp855.map" "" \
  43. "qwerty/bg_bds-cp1251.map" "" \
  44. "qwerty/bg_bds-utf8.map" "" \
  45. "qwerty/bg_pho-cp1251.map" "" \
  46. "qwerty/bg_pho-utf8.map" "" \
  47. "qwerty/br-abnt.map" "" \
  48. "qwerty/br-abnt2.map" "" \
  49. "qwerty/br-latin1-abnt2.map" "" \
  50. "qwerty/br-latin1-us.map" "" \
  51. "qwerty/by.map" "" \
  52. "qwerty/cf.map" "" \
  53. "qwerty/cz-cp1250.map" "" \
  54. "qwerty/cz-lat2-prog.map" "" \
  55. "qwerty/cz-lat2.map" "" \
  56. "qwerty/cz.map" "" \
  57. "qwerty/defkeymap.map" "" \
  58. "qwerty/defkeymap_V1.0.map" "" \
  59. "qwerty/dk-latin1.map" "" \
  60. "qwerty/dk.map" "" \
  61. "qwerty/emacs.map" "" \
  62. "qwerty/emacs2.map" "" \
  63. "qwerty/es-cp850.map" "" \
  64. "qwerty/es.map" "" \
  65. "qwerty/et-nodeadkeys.map" "" \
  66. "qwerty/et.map" "" \
  67. "qwerty/fi-latin1.map" "" \
  68. "qwerty/fi-latin9.map" "" \
  69. "qwerty/fi.map" "" \
  70. "qwerty/gr-pc.map" "" \
  71. "qwerty/gr.map" "" \
  72. "qwerty/hu101.map" "" \
  73. "qwerty/il-heb.map" "" \
  74. "qwerty/il-phonetic.map" "" \
  75. "qwerty/il.map" "" \
  76. "qwerty/is-latin1-us.map" "" \
  77. "qwerty/is-latin1.map" "" \
  78. "qwerty/it-ibm.map" "" \
  79. "qwerty/it.map" "" \
  80. "qwerty/it2.map" "" \
  81. "qwerty/jp106.map" "" \
  82. "qwerty/la-latin1.map" "" \
  83. "qwerty/lt.baltic.map" "" \
  84. "qwerty/lt.l4.map" "" \
  85. "qwerty/lt.map" "" \
  86. "qwerty/mk-cp1251.map" "" \
  87. "qwerty/mk-utf.map" "" \
  88. "qwerty/mk.map" "" \
  89. "qwerty/mk0.map" "" \
  90. "qwerty/nl.map" "" \
  91. "qwerty/nl2.map" "" \
  92. "qwerty/no-latin1.map" "" \
  93. "qwerty/no.map" "" \
  94. "qwerty/pc110.map" "" \
  95. "qwerty/pl.map" "" \
  96. "qwerty/pl2.map" "" \
  97. "qwerty/pt-latin1.map" "" \
  98. "qwerty/pt-latin9.map" "" \
  99. "qwerty/ro_win.map" "" \
  100. "qwerty/ru-cp1251.map" "" \
  101. "qwerty/ru-ms.map" "" \
  102. "qwerty/ru-yawerty.map" "" \
  103. "qwerty/ru.map" "" \
  104. "qwerty/ru1.map" "" \
  105. "qwerty/ru2.map" "" \
  106. "qwerty/ru3.map" "" \
  107. "qwerty/ru4.map" "" \
  108. "qwerty/ru_win.map" "" \
  109. "qwerty/se-fi-ir209.map" "" \
  110. "qwerty/se-fi-lat6.map" "" \
  111. "qwerty/se-ir209.map" "" \
  112. "qwerty/se-lat6.map" "" \
  113. "qwerty/sk-prog-qwerty.map" "" \
  114. "qwerty/sk-qwerty.map" "" \
  115. "qwerty/speakup-jfw.map" "" \
  116. "qwerty/speakupmap.map" "" \
  117. "qwerty/sr-cy.map" "" \
  118. "qwerty/sv-latin1.map" "" \
  119. "qwerty/tr_q-latin5.map" "" \
  120. "qwerty/tralt.map" "" \
  121. "qwerty/trq.map" "" \
  122. "qwerty/ua-utf-ws.map" "" \
  123. "qwerty/ua-utf.map" "" \
  124. "qwerty/ua-ws.map" "" \
  125. "qwerty/ua.map" "" \
  126. "qwerty/uk.map" "" \
  127. "qwerty/us-acentos.map" "" \
  128. "qwerty/us.map" "" \
  129. "qwertz/croat.map" "" \
  130. "qwertz/cz-us-qwertz.map" "" \
  131. "qwertz/de-latin1-nodeadkeys.map" "" \
  132. "qwertz/de-latin1.map" "" \
  133. "qwertz/de.map" "" \
  134. "qwertz/de_CH-latin1.map" "" \
  135. "qwertz/fr_CH-latin1.map" "" \
  136. "qwertz/fr_CH.map" "" \
  137. "qwertz/hu.map" "" \
  138. "qwertz/sg-latin1-lk450.map" "" \
  139. "qwertz/sg-latin1.map" "" \
  140. "qwertz/sg.map" "" \
  141. "qwertz/sk-prog-qwertz.map" "" \
  142. "qwertz/sk-qwertz.map" "" \
  143. "qwertz/slovene.map" "" \
  144. 2> $temp1/return
  145. if [ ! $? = 0 ]
  146.   then
  147.     break
  148. fi
  149. REPLY=`cat $temp1/return`
  150. rm -f $temp1/return
  151.  
  152. #reply
  153. loadkeys /usr/share/kbd/keymaps/i386/$REPLY
  154. break
  155.  
  156. done